<?php
	$retValue;
	$retArray = array();
	$res = exec("svn update", $retArray, $retValue);
?>
<html><head><title><?php echo ($res ? str_replace("Updated to revision", "Rev", $res) : "Failed to svn update"); ?></title></head><body><pre>
<?php
	echo ($res ? $res : "Failed to svn update") . "\n";
	foreach ($retArray as $line)
		echo $line . "\n";
?>
</pre></body></html>